import Vue from 'vue'
import App from './App.vue'
import store from './store/index'
import router from './router'
import '@/mock/mockServe'
Vue.config.productionTip = false
// 注册全局组件 全局组件不需要引入可以直接使用
import TypeNav from '@/components/TypeNav'
import Carousel from '@/components/Carousel'
import 'swiper/css/swiper.css'
import {
  reqCategoryList
} from '@/api/index'
reqCategoryList()
Vue.component(TypeNav.name, TypeNav)
Vue.component(Carousel.name, Carousel)
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')